Skip to main content
POST
/
v1
/
flux-pro-1.0-fill
Generate an image with FLUX.1 Fill [pro] using an input image and mask.
curl --request POST \
  --url https://api.bfl.ai/v1/flux-pro-1.0-fill \
  --header 'Content-Type: application/json' \
  --header 'x-key: <api-key>' \
  --data '{
  "image": "<string>",
  "mask": "<string>",
  "prompt": "ein fantastisches bild",
  "steps": 50,
  "prompt_upsampling": true,
  "seed": 123,
  "guidance": 50.75,
  "output_format": "jpeg",
  "safety_tolerance": 2,
  "webhook_url": "<string>",
  "webhook_secret": "<string>"
}'
{
  "id": "<string>",
  "polling_url": "<string>",
  "cost": 123,
  "input_mp": 123,
  "output_mp": 123
}

Authorizations

x-key
string
header
required

Body

application/json
image
string
required
mask
string | null
prompt
string | null
default:""
Example:
steps
integer | null
default:50
Required range: 15 <= x <= 50
Example:
prompt_upsampling
boolean | null
default:false
seed
integer | null
guidance
number | null
default:60
Required range: 1.5 <= x <= 100
output_format
enum<string> | null
default:jpeg
Available options:
jpeg,
png
safety_tolerance
integer
default:2
Required range: 0 <= x <= 6
Example:
webhook_url
string<uri> | null
Required string length: 1 - 2083
webhook_secret
string | null

Response

  • AsyncResponse
  • AsyncWebhookResponse
id
string
required
polling_url
string
required
cost
number | null
input_mp
number | null
output_mp
number | null